package cn.tx.service.Impl;

import cn.tx.dao.User1Dao;
import cn.tx.model.User1;
import cn.tx.service.User1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class User1ServiceImpl implements User1Service {

    @Autowired
    private User1Dao user1Dao;


    @Override
    public User1 findByuser1Name(String username) {
        return user1Dao.findByuser1Name(username);
    }

    @Override
    public int adduser1(User1 user) {
        return user1Dao.adduser1(user);
    }

    @Override
    public List<User1> findList(Map<String, Object> querymap) {
        return user1Dao.findList(querymap);
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return user1Dao.findTotal(querymap);
    }

    @Override
    public int Updateuser1ById(User1 user) {
        return user1Dao.Updateuser1ById(user);
    }

    @Override
    public int delete(String ids) {
        return user1Dao.delete(ids);
    }

    @Override
    public List<User1> findAll() {
        return user1Dao.findAll();
    }
}
